//引入全局样式
import "./assets/style/index.less";

import { createApp } from "vue";
import App from "./App.vue";

const app = createApp(App);

//引入pinia
import { createPinia } from "pinia";
app.use(createPinia());

//引入路由
import router from "./router";
app.use(router);

//引入ElementPlus组件库
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
//组件使用中文
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
app.use(ElementPlus, {
  locale: zhCn,
});

//引入自定义插件对象：注册整个项目全局组件
import gloablComponent from "./components/index.js";
app.use(gloablComponent);

app.mount("#app");
